<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for command line</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Command line API: profile, profileEnd</h1>

<p>This test-case is intended for command line <b>profile</b> and <b>profileEnd</b> methods.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Console panel.</li>
<li>Verify that <code>profile();</code> gives a warning about requiring the Script panel.</li>
<li>Enable the Script panel, and reload.</li>
<li>Execute <span style="color:green">profile()</span> on the command line.</li>
<li>Click the <span style="color:green">Execute Test</span> buttton.</li>
<li>Execute <span style="color:green">profileEnd()</span> on the command line.</li>
<li>A table with profile info should be displayed.</li>
</ol>

<button id="testButton" onclick="fib(10)">Execute Test</button>
<br/><br/>

<script type="text/javascript">
function fib(n)
{
    return n<2?n:fib(n-1)+fib(n-2);
}
</script>

</body>
</html>
